<?php
class Computer {
	public $cpu = 'amd 5000';
	public $mainboard = '华硕 9000x';
	private $hd = 512;

	public function __construct($high=0){
		if($high){
			echo "高配的cpu就绪";
			echo "高配的主板就绪";
			echo "高配的内存就绪...";
		}else{
			echo "cpu就绪";
			echo "主板就绪";
			echo "内存就绪...";
		}
	}
	public function game(){
		echo "－－玩游戏－－";
	}
	private function getHdSize(){
		return $this->hd;
	}
}

$computer = new Computer(1);
$computer->game();
// var_dump($computer->game());